<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="dns-prefetch" href="https://img.qumoyugo.com/">
    <!-- <script src="https://unpkg.com/vconsole/dist/vconsole.min.js"></script> -->
    <script>
      var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
        CSS.supports('top: constant(a)'))
      document.write(
        '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
        (coverSupport ? ', viewport-fit=cover' : '') + '" />')
    </script>
    <title></title>
  </head>
  <body>
    <div style="background-color: #fff;position: fixed;top:0;left:0;width:100vw;z-index:1" id="barHeight"></div>
    <div id="app"><!--app-html--></div>
    <script type="module" src="/src/main.js"></script>
    <script>
      function getCookie(name){
        const cs = document.cookie
        const arr = cs.split(';')
        const obj = {}
        if (cs !== '') {
          for (let i = 0; i < arr.length; i++) { 
            const a=arr[i].split('=')
            const key = a[0].trim()
            if (key !== '') {
              const val = decodeURIComponent(a[1])
              obj[key] = val
            }
          }
          return name ? obj[name] : obj
        } else {
          return null
        }
      }
      document.getElementById('barHeight').style.height = getCookie('statusBarHeight') + 'px'
      document.getElementsByTagName('body')[0].style.paddingTop = getCookie('statusBarHeight') + 'px'
      // window.onload = function(){
      //   new window.VConsole()
      // }
    </script>
  </body>
</html>
